package org.jeecg.modules.flower.vo;

import java.math.BigDecimal;
import java.util.List;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.flower.entity.FlowerPre;
import org.jeecg.modules.flower.entity.FlowerPreinfo;
import lombok.Data;
import org.jeecg.modules.flower.entity.FlowerPreinfoHs;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecgframework.poi.excel.annotation.ExcelEntity;
import org.jeecgframework.poi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 销售确认单主表
 * @Author: jeecg-boot
 * @Date:   2022-06-27
 * @Version: V1.0
 */
@Data
@ApiModel(value="t_flower_prePage对象", description="销售确认单主表")
public class FlowerPrePage {

	/**id*/
	@ApiModelProperty(value = "id")
	private String id;
	@Excel(name = "预出库申请单号", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "预出库申请单号")
	private String outorderPreNo;
	/**确认单号*/
	@Excel(name = "确认单号", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "确认单号")
	private String no;
	/**出库人*/
	@Excel(name = "业务员", width = 15,needMerge = true )
	@ApiModelProperty(value = "业务员")
	private String stockOutUser;

	/**数量*/
	@Excel(name = "数量", width = 15 ,needMerge = true, type =4, isStatistics=true)
	@ApiModelProperty(value = "数量")
	private BigDecimal number;
	/**总价*/
	@Excel(name = "总价", width = 15 ,needMerge = true, type =4, isStatistics=true)
	@ApiModelProperty(value = "总价")
	private java.math.BigDecimal toalprice;

	@Excel(name = "收款金额（元）", width = 15 , type=4 )
	@ApiModelProperty(value = "收款金额（元）")
	private BigDecimal getMoney;

	@Excel(name = "货损数量", width = 15, type =4, isStatistics=true)
	@ApiModelProperty(value = "货损数量")
	private Integer numberhs ;

	@Excel(name = "货损金额", width = 15, type =4, isStatistics=true)
	@ApiModelProperty(value = "货损金额")
	private java.math.BigDecimal toalpricehs ;
	/**'客户姓*/
	@Excel(name = "客户", width = 15,needMerge = true)
	@ApiModelProperty(value = "客户")
	private String user;
	/**'客户id'*/
	@ApiModelProperty(value = "客户id")
	private String userid;

	@Excel(name = "地址", width = 15, needMerge = true)
	@ApiModelProperty(value = "地址")
	private String address;

	/**基地负责人*/
	@Excel(name = "基地负责人", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "基地负责人")
	private String sealSureUser;
	/**基地负责人*/
	@TableField( updateStrategy = FieldStrategy.IGNORED)
	@Excel(name = "基地负责人确认时间", width = 15, format = "yyyy-MM-dd HH:mm:ss" ,needMerge = true)
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "基地负责人确认时间")
	private Date sealSureTime;

	@Excel(name = "运管备案", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "运管备案")
	private String pipSure;

	@TableField( updateStrategy = FieldStrategy.IGNORED)
	@Excel(name = "运管备案时间", width = 15, format = "yyyy-MM-dd HH:mm:ss" ,needMerge = true)
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "运管备案时间")
	private Date pipSureTime;


	/**财务确认人*/
	@Excel(name = "财务确认人", width = 15 ,needMerge = true)
	@ApiModelProperty(value = "财务确认人")
	private String finaSureUser;
	/**财务确认日期*/
	@TableField( updateStrategy = FieldStrategy.IGNORED)
	@Excel(name = "财务确认日期", width = 15, format = "yyyy-MM-dd HH:mm:ss" ,needMerge = true)
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "财务确认日期")
	private Date finaSureTime;

	@Excel(name = "是否需要开票", width = 15, needMerge = true)
	@ApiModelProperty(value = "是否需要开票")
	private String isinvoice;
	/**'出库时间*/
	@Excel(name = "出库时间", width = 15,  format = "yyyy-MM-dd HH:mm:ss", needMerge = true)
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "出库时间")
	private Date stockOutTime;


	@Excel(name = "付款凭证", width = 15)
	@ApiModelProperty(value = "付款凭证")
	private String voucher;


	@Excel(name = "银行回单", width = 15)
	@ApiModelProperty(value = "银行回单")
	private String receipt;


	//渠道
	@Excel(name = "渠道", width = 15,dicCode = "ch_channel", needMerge = true)
	@Dict(dicCode = "ch_channel")
	@ApiModelProperty(value = "渠道")
	private String channel;

	//账号
	@Excel(name = "账号", width = 15,dicCode = "ch_account_no", needMerge = true)
	@Dict(dicCode = "ch_account_no")
	@ApiModelProperty(value = "账号")
	private String accountno;


	@Excel(name = "账期号", width = 15  ,needMerge = true  )
	@ApiModelProperty(value = "账期号")
	private String period;

	@Excel(name = "账期状态", width = 15 ,needMerge = true )
	@ApiModelProperty(value = "账期状态")
	private String periodState;


	/**创建日期*/
	@Excel(name = "创建日期", width = 15, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建日期")
	private Date createTime;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新日期")
	private Date updateTime;
	/**创建人*/
	@Excel(name = "创建人", width = 15, needMerge = true,  dictTable = "sys_user",dicText = "realname",dicCode = "username")
	@Dict( dictTable = "sys_user",dicText = "realname",dicCode = "username")
	@ApiModelProperty(value = "创建人")
	private String createUser;
	/**更新人*/
//	@Excel(name = "更新人", width = 15)
	@ApiModelProperty(value = "更新人")
	private String updateUser;
	/**-2删除  0草稿，1基地负责人审批，2运管备案，3财务确认）*/
	@Excel(name = "状态", width = 15,replace = {"删除_-2","草稿_0","基地负责人已审批_1","运管已备案_2","财务已确认_3"},needMerge = true )
	@ApiModelProperty(value = "状态（-2删除  0草稿，1基地负责人审批，2运管备案，3财务确认））")
	private Integer state;
	
	@ExcelCollection(name="销售确认详情信息")
	@ApiModelProperty(value = "销售确认单子表")
	private List<FlowerPreinfo> flowerPreinfoList;

	@ExcelCollection(name="销售确认货损信息")
	@ApiModelProperty(value = "销售确认货损信息")
	private List<FlowerPreinfoHs> flowerPreinfoHsList;
	
}
